﻿@model Budgeter.ViewModels.Budget.Create.Entry
@{
    string filter = (string) ViewData["Filter"];
}
<tr class="entry clearable">
    <td>
        @Html.DropDownListFor(
            x => x.EntryTypeId,
            new SelectList(
                         Budgeter.ViewModels.Budget.Create.Entry.GetEntryTypes(filter),
                "EntryTypeId",
                "Name",
                Model.EntryTypeId),
            "(Select an expense)")
            @Html.ValidationMessageFor(x => x.EntryTypeId)
    </td>
    <td>
        @Html.TextBoxFor(x => x.Amount, new { @class="currency amount span3", placeholder = "$" })
        @Html.ValidationMessageFor(x => x.Amount)
    </td>
    <td>
        per
    </td>
    <td>
        @Html.DropDownListFor(model => model.IntervalId, Budgeter.ViewModels.Budget.Create.GetIntervalSelectList(), "", new { @class = "span3" })
        @Html.ValidationMessageFor(model => model.IntervalId)
    </td>
    <td class="span3">
        <strong class="translatedamount"><big>...</big></strong>
        <small class="translatedinterval"></small>
    </td>
    <td>
        <a class="clearlink reduced" href="javascript:void()">(clear)</a>
    </td>
</tr>
